package com.gaogis.platform;

import java.io.Serializable;

public class Response implements Serializable{

	public int code;
	public String message;
	public Object data;

	private Response(){
	}
	public static Response success(Object d){
		Response r=new Response();
		r.code=0;
		r.message="";
		r.data=d;
		return r;
	}

	public static Response fail(String mes){
		Response r=new Response();
                r.code=-1;
                r.message=mes;
                return r;
	}

}
